package meterMonitor.biz;

import meterMonitor.mapper.SettingMapper;
import meterMonitor.model.Setting;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SettingBiz {
    @Autowired
    SettingMapper settingMapper;

    public void updateSetting(int timer){
        settingMapper.updateSetting(timer);
    }

    public Setting getSetting(){
        return settingMapper.selectSetting();
    }
}
